package com.piesat.quake.business.device.model;

import com.piesat.quake.business.device.mqtt.anno.PipelineNode;

/**
 * 设备状态
 *
 * @author Gersy
 * @date 2023/3/3
 * @since 1.0
 */
@PipelineNode(preNodes = {BaseModel.class})
public class DeviceStatus extends BaseModel {
    private short temperature;

    public short getTemperature() {
        return temperature;
    }

    public void setTemperature(short temperature) {
        this.temperature = temperature;
    }

    @Override
    public String toString() {
        return "DeviceStatus{" +
                "  temperature=" + temperature +
                ", type='" + type + '\'' +
                ", length=" + length +
                ", id='" + id + '\'' +
                ", endian=" + endian +
                ", timestamp=" + timestamp +
                '}';
    }
}
